
# https://www.nushell.sh/zh-CN/book/coming_from_bash.html

# fetch 'https://gitee.com/lgf1244/scripts/raw/main/shell/system-init.nu' | nu -c $in
# fetch 'https://gitee.com/lgf1244/scripts/raw/main/shell/system-init.nu' | save --raw system-init.nu | nu system-init.nu

let os_name = (sys | get host | get name)
let os_version = (sys | get host | get os_version)
let long_os_version = (sys | get host | get long_os_version)
let kernel_version = (sys | get host | get kernel_version)
let hostname = (sys | get host | get hostname)

echo $"this is ($long_os_version) platform"
